package com.lagou.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class DTO<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private boolean success = true;  // 是否成功
    private int state;  // 操作状态
    private String message;  // 状态描述
    private T content;  // 响应内容
}
